package cn.itrip.dao;

import cn.itrip.pojo.ItripHotelOrder;
import cn.itrip.utlis.Page;
import cn.itrip.vo.OrderSelectCondition;
import cn.itrip.vo.order.*;

import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import cn.itrip.vo.order.ItripSearchOrderVO;

import java.util.List;
import java.util.Map;

public interface ItripHotelOrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ItripHotelOrder record);

    int insertSelective(ItripHotelOrder record);

    ItripHotelOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ItripHotelOrder record);

    int updateByPrimaryKeyWithBLOBs(ItripHotelOrder record);

    int updateByPrimaryKey(ItripHotelOrder record);

    public int selectTatol(OrderSelectCondition orderSelectCondition);

    public List<ItripHotelOrder> findByPageQuery(OrderSelectCondition orderSelectCondition);

    public ItripHotelOrder selectByOrderNo(String orderNo);

    public boolean updateOrderByPay(ItripHotelOrder itripHotelOrder);

    public ItripHotelOrder findByOrderId(long orderId);

    public ItripModifyHotelOrderVO findByIdForOrder(long orderId);

    public ItripPersonalOrderRoomVO getItripHotelOrderRoomInfoById(long orderId) throws Exception;

    int updateByStatus(@Param(value = "orderId") Long orderId,@Param("orderStatus") Integer orderStatus);

    int updateByPrimaryKeyAndStatus(@Param("orderNo") Long id, @Param("orderStatus") Integer orderStatus,@Param("transactionId")String transactionId);

    int flushCancleOrderStatus();

    int flushCommentlOrderStatus();
}